package com.bskj.kuaifu.bean.vo.resp;

import java.util.Date;

/**
 * 用户停车记录响应VO
 *
 * @author lishi
 * @date 2017-12-6 上午11:28:16
 */
public class UserParkInfoRespVo {
    private Integer id; // 主键
    private Integer userId; // 用户ID（t_user_info.id）
    private String carNo; // 车牌号码（t_user_info.car_no）
    private Integer parkLotCustimerId; // 停车场ID
    private Date inTime; // 车辆进入时间
    private Date outTime; // 车辆出去时间
    private Integer charge; // 停车费（单位：角）'
    private Integer chargeType; // 收费方式（0-待支付 1-现金 2-平台代扣）
    private Integer beforeMoney; // 收费前的账号余额（单位：角）
    private Integer changeMoney; // 更改的金额（单位：角）
    private Integer afterMoney; // 收费后的账户余额（单位：角）
    private Integer beforeCoupon; // 收费前的礼券 （单位：角）
    private Integer changeCoupon; // 更改的礼券 （单位：角）
    private Integer afterCoupon; // 收费后的礼券 （单位：角）
    private Date createTime; // 创建时间

    private String parkLotName; //停车场名称
    private String parkLotArea;//停车场地址

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public Integer getParkLotCustimerId() {
        return parkLotCustimerId;
    }

    public void setParkLotCustimerId(Integer parkLotCustimerId) {
        this.parkLotCustimerId = parkLotCustimerId;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }

    public Date getOutTime() {
        return outTime;
    }

    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }

    public Integer getCharge() {
        return charge;
    }

    public void setCharge(Integer charge) {
        this.charge = charge;
    }

    public Integer getChargeType() {
        return chargeType;
    }

    public void setChargeType(Integer chargeType) {
        this.chargeType = chargeType;
    }

    public Integer getBeforeMoney() {
        return beforeMoney;
    }

    public void setBeforeMoney(Integer beforeMoney) {
        this.beforeMoney = beforeMoney;
    }

    public Integer getChangeMoney() {
        return changeMoney;
    }

    public void setChangeMoney(Integer changeMoney) {
        this.changeMoney = changeMoney;
    }

    public Integer getBeforeCoupon() {
        return beforeCoupon;
    }

    public void setBeforeCoupon(Integer beforeCoupon) {
        this.beforeCoupon = beforeCoupon;
    }

    public Integer getChangeCoupon() {
        return changeCoupon;
    }

    public void setChangeCoupon(Integer changeCoupon) {
        this.changeCoupon = changeCoupon;
    }

    public Integer getAfterCoupon() {
        return afterCoupon;
    }

    public void setAfterCoupon(Integer afterCoupon) {
        this.afterCoupon = afterCoupon;
    }

    public Integer getAfterMoney() {
        return afterMoney;
    }

    public void setAfterMoney(Integer afterMoney) {
        this.afterMoney = afterMoney;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getParkLotName() {
        return parkLotName;
    }

    public void setParkLotName(String parkLotName) {
        this.parkLotName = parkLotName;
    }

    public String getParkLotArea() {
        return parkLotArea;
    }

    public void setParkLotArea(String parkLotArea) {
        this.parkLotArea = parkLotArea;
    }

    public Integer getOweAmount() {
        if (chargeType == 0) {
            return charge;
        } else {
            return afterMoney * -1;
        }
    }
}